-- GENERATED SPELL FOR [Wastewander Bandit] --


function spell0_5618(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(8721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5618', 566, 1)
end

function spell1_5618(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(8629,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5618', 4000, 1)
end

function Sorts_5618(pUnit, Event)
local choix_sorts_5618 = math.random(0, 1)
if choix_sorts_5618 == 0 then
pUnit:RegisterEvent('spell0_5618', 1, 1)
end
if choix_sorts_5618 == 1 then
pUnit:RegisterEvent('spell1_5618', 1, 1)
end
end

function mob5618_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5618', math.random(1500, 3000), 1)
end

function mob5618_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5618_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5618_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5618, 1, 'mob5618_Action')
RegisterUnitEvent(5618, 2, 'mob5618_Leave')
RegisterUnitEvent(5618, 3, 'mob5618_Kill')
RegisterUnitEvent(5618, 4, 'mob5618_Die')
